import http from "@/utils/http";
//获取出库申请列表
export function TransferOut_tabList(auditState, params) {
  return http.post(
    "/by-transfer-warehousing-out-apply/select/" + auditState + "/page/list",
    params
  );
}
//修改转出库申请
export function TransferOut_update(outApplyId, params) {
  return http.post(
    "/by-transfer-warehousing-out-apply/update/01/" + outApplyId,
    params
  );
}
//获取表头统计
export function TransferOut_statecount(params) {
  return http.post("/by-transfer-warehousing-out-apply/select/tips", params);
}
//获取国家信息
export function TransferOut_state() {
  return http.get("/sys-country/");
}
//根据国家获取省
export function TransferOut_Province(params) {
  return http.get("/sys-country/state/" + params);
}

//获取仓库数据
export function TransferOut_warehouse(params) {
  return http.post("/by-warehouse/select", params);
}
//获取仓库数据
export function TransferOut_warehousingOccupy(params) {
  return http.post(
    "/by-transfer-warehousing-occupy/select/out/page/list",
    params
  );
}
//点击编辑时候查单条数据
export function TransferOut_searchItem(params) {
  return http.post("/by-transfer-warehousing-out-apply/select/one/" + params);
}
//查询货物列表数据
export function TransferOut_searchGoodsList(params) {
  return http.post("/by-transfer-warehousing-out-record/selectList/" + params);
}
//查新增出库申请
export function TransferOut_Add(params) {
  return http.post("/by-transfer-warehousing-out-apply/save/0", params);
}
//增加货物列表数据
export function TransferOut_addGoods(OccupyId, ApplyId, boxId, params) {
  return http.post(
    "/by-transfer-warehousing-out-record/saveInfo/" +
      OccupyId +
      "/" +
      ApplyId +
      "/" +
      boxId,
    params
  );
}
//查询详情信息
export function TransferOut_rowInfo(params) {
  return http.get("/by-outbound-apply/" + params);
}
//删除单条数据
export function TransferOut_del(params) {
  return http.delete("/by-outbound-apply/" + params);
}
//删除文件
export function TransferOut_delFile(outApplyId, outTagfileId, revision) {
  return http.post(
    "/by-transfer-warehousing-out-tagfile/deleteTagFile/item/" +
      outApplyId +
      "/" +
      outTagfileId +
      "/" +
      revision
  );
}
//删除文件
export function TransferOut_editFile(outApplyId, outTagfileId, params) {
  return http.post(
    "/by-transfer-warehousing-out-tagfile/update/item/" +
      outApplyId +
      "/" +
      outTagfileId,
    params
  );
}
//提交订单
export function TransferOut_submit(outApplyId, revision, auditState) {
  return http.post(
    "/by-transfer-warehousing-out-apply/audit/01/to/2/" +
      outApplyId +
      "/" +
      revision +
      "/" +
      auditState
  );
}
//删除订单
export function TransferOut_delInfo(outApplyId, revision) {
  return http.post(
    "/by-transfer-warehousing-out-apply/remove/01/" +
      outApplyId +
      "/" +
      revision
  );
}
//文件审核确认
export function TransferOut_flieAudit(outApplyId, tagFileId, revision) {
  return http.post(
    "/by-transfer-warehousing-out-tagfile/audit/1/0/" +
      outApplyId +
      "/" +
      tagFileId +
      "/" +
      revision
  );
}
//审核订单
export function TransferOut_audit(outApplyId, revision, auditState) {
  return http.post(
    "/by-transfer-warehousing-out-apply/audit/2/to/03/" +
      outApplyId +
      "/" +
      revision +
      "/" +
      auditState
  );
}
//确认处理
export function TransferOut_cHandle(outApplyId, revision, auditState) {
  return http.post(
    "/by-transfer-warehousing-out-apply/audit/3/to/4/" +
      outApplyId +
      "/" +
      revision +
      "/" +
      auditState
  );
}
//发送账单
export function TransferOut_sendBill(outApplyId, revision) {
  return http.post(
    "/by-transfer-warehousing-out-apply/sendBill/4/" +
      outApplyId +
      "/" +
      revision
  );
}
//撤回订单
export function TransferOut_recallt(params) {
  return http.get("/by-outbound-apply/recall/" + params);
}
//撤回订单
export function TransferOut_delteInfo(outApplyId, recordId) {
  return http.post(
    "/by-transfer-warehousing-out-record/deleteInfo/" +
      outApplyId +
      "/" +
      recordId
  );
}
//查询文件
export function TransferOut_fileList(outApplyId) {
  return http.post(
    "/by-transfer-warehousing-out-tagfile/select/list/" + outApplyId
  );
}
//即时保存文件
export function TransferOut_saveFile(outApplyId, params) {
  return http.post(
    "/by-transfer-warehousing-out-tagfile/save/item/" + outApplyId,
    params
  );
}
//批量删除
export function TransferOutBatchByState_delete(params) {
  return http.put("/by-outbound-apply/delete-batchByState", params);
}
//批量提交
export function TransferOutBatchByState_submit(params) {
  return http.put("/by-outbound-apply/batchby-State", params);
}
//导出运单表格
export function TransferOutBatchByState_upDow() {
  return http.blob("/by-outbound-apply/upDow");
}
//批量选择取消签收服务
export function TransferOutBatchByState_noSign(params) {
  return http.put("/by-outbound-apply/is-sign/0", params);
}
//批量选择签收服务
export function TransferOutBatchByState_yesSign(params) {
  return http.put("/by-outbound-apply/is-sign/1", params);
}
//批量取消自有运单
export function TransferOutBatchByState_cancelEctn(params) {
  return http.put("/by-outbound-apply/cancel-ectn/", params);
}
//批量设置暂缓处理
export function TransferOutBatchByState_updateDefer(url, params) {
  return http.post("/by-outbound-apply/update-defer/" + url, params);
}
//批量设置暂缓处理
export function TransferOutBatchByState_updateIsectn(params) {
  return http.put("/by-outbound-apply/update-isectn", params);
}
//删除上传文件
export function TransferOutBatchByState_removefile(params) {
  return http.post("/by-file/removeBatchFile", params);
}
// //导出出库订单列表
export function TransferOutBatchByState_excel(data, params) {
  return http.blobJson("/by-outbound-apply/excel/" + data, params);
}
// //删除订单详情中的数据
export function TransferOutdel_apply(params) {
  return http.put("/by-outbound-apply/update-record/" + params);
}
//根据仓库查询SKU
export function TransferOutdel_housPdt(params) {
  return http.get("/by-product-info/transfer-hous-pdt/" + params);
}
//查询SKU列表
export function TransferOut_getSkuList(params) {
  return http.post("/by-transfer-warehousing-out-one-record/select/" + params);
}
//删除SKU
export function TransferOut_delSkuOne(
  outApplyId,
  outOneRecordId,
  revision,
  productId
) {
  return http.post(
    "/by-transfer-warehousing-out-one-record/remove/One/record/" +
      outApplyId +
      "/" +
      outOneRecordId +
      "/" +
      revision +
      "/" +
      productId
  );
}
//修改sku编号
export function TransferOut_editSkuNo(outApplyId, pramas) {
  return http.post(
    "/by-transfer-warehousing-out-one-record/edit/" + outApplyId,
    pramas
  );
}
//添加sku列表
export function transferAddSku(outApplyId, warehouseId, params) {
  return http.post(
    "/by-transfer-warehousing-out-one-record/save/One/record/" +
      outApplyId +
      "/" +
      warehouseId,
    params
  );
}
//退回等待处理
export function TransferOut_backOf(outApplyId, revision, auditState) {
  return http.post(
    "/by-transfer-warehousing-out-apply/audit/4/to/45/" +
      outApplyId +
      "/" +
      revision +
      "/" +
      auditState
  );
}
